#ifndef GAME_HPP_INCLUDED
#define GAME_HPP_INCLUDED

class Game:public Screen{
    public:
    Game(int nextScreen,BibSprite *bib);
    int Run (sf::RenderWindow &App);
    void freeRessource();
    ~Game();

    private:
    void majText();
    void gestColCarapPalette();
    void gestColCarapBrique(sf::RenderWindow &App);
    void drawPalette(sf::RenderWindow &App);
    void drawFireBall(sf::RenderWindow &App);
    void gestEvent(sf::RenderWindow &App);
    void initGame();
    void makePause();

    BibSprite *bibSprite;
    Brique *mur[20][15];
    std::vector<FireBall*> vectFireBall;
    std::vector<Carapace*> vectCarap;
    Palette *palette;
    sf::Sprite *Fond;
    sf::String *textInfo;
    sf::String *textPause;
    sf::Sprite spriteFireBall;
    sf::Sound sonColision;
    sf::Sound sonPause;
    sf::Music musiqueFond;
    int nextScreen;
    float perc;
    int nbFireBall;
    bool pause;
    bool carapStarted;
    bool sound;
    bool gameInitied;
};

#endif // GAME_HPP_INCLUDED
